home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 2.iso
/
dist
/
fw_gnome-pilot.idb
/
usr
/
freeware
/
include
/
gpilotd
/
gpilot-userinfo.h.z
/
gpilot-userinfo.h
Wrap
C/C++ Source or Header
|
2001-10-09
|
2KB
|
76 lines
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- *//*
* Copyright (C) 1998-2000 Free Software Foundation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* Authors: Eskil Heyn Olsen
* Manish Vachharajani
*
*/
#ifndef _GPILOT_USERINFO_H_
#define _GPILOT_USERINFO_H_
#include <glib.h>
#include "gnome-pilot-conduit.h"
typedef struct GPilotSyncOpt {
GnomePilotConduitSyncType default_sync_action;
gchar *basedir;
} GPilotSyncOpt;
struct GPilotUser;
typedef struct GPilotUser GPilotUser;
struct GPilotPilot {
/* The pilots name */
gchar *name;
/* The userspecified password for the pilot */
gchar *passwd;
/* To look up conduits file */
int number;
/* Pilot owners name */
gchar *pilot_username;
/* Pilots ID number */
guint32 pilot_id;
/* list of gchar* unix usernames that may operate on the pilot (not implemented) */
GList *trusted_users;
GPilotSyncOpt sync_options;
};
typedef struct GPilotPilot GPilotPilot;
struct GPilotUser {
gchar *username; /* We can get the real name from getpwent */
};
GPilotPilot *gpilot_pilot_new (void);
void gpilot_pilot_init (GPilotPilot *pilot, gint i);
void gpilot_pilot_free (GPilotPilot *pilot);
GPilotUser *gpilot_user_new (void);
void gpilot_user_free (GPilotUser *user);
GPilotPilot* gpilot_find_pilot_by_name(gchar*,GList*);
GPilotPilot* gpilot_find_pilot_by_id(guint32, GList*);
#define GPILOT_PILOT(s) ((GPilotPilot*)(s))
#define GPILOT_USER(s) ((GPilotUser*)(s))
#endif /* _GPILOT_USERINFO_H_ */